package Lecture17;

public class asd {

	static int weigth = 0;

	public static void main(String[] args) {
		setWeigh(-10);
		System.out.println("Zzzzz");
	}

	static void letsTroll() {
		throw new SecurityException("abdjjjjjjjjjjj");
	}

	void letsTrollAgain() {
		try {
			letsTroll();
		} catch (Exception e) {
			throw new IllegalStateException("ti ebava6 li se s mene?!", e);
		}
	}

	private static void setWeigh(int a) {
		if (a < 0)
			throw new IllegalStateException("ti ebava6 li se s mene?!");
		weigth = a;
	}

}
